import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Button-RawMaterialButton-Material按钮',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Button-RawMaterialButton-Material按钮'),
        ),
          body: Demo(),
      ),
    );
  }
}

class Demo extends StatelessWidget{

  Widget build(BuildContext context){
    return Center(
      child: Column(
          children: [
            RawMaterialButton(
                textStyle:TextStyle(fontSize: 26,color: Colors.blue),
              highlightColor: Colors.red,
              splashColor: Colors.blue,
              clipBehavior: Clip.antiAlias,
              padding: EdgeInsets.all(5),
              child: Text('RawMaterialButton'),
                onPressed: (){}
            ),
          ],
      ),
    );
  }
}